
import instance from "@/utils/request";

export const getPoorFamily = (params) => {
  return instance({
    method: "get",
    url: "/poorFamily/getPoorFamily",
    params,
  });
};

export const updatePoorFamily = (data) => {
  return instance({
    method: "put",
    url: "/poorFamily/updatePoorFamily",
    data,
  });
};
export const addPoorFamily = (data) => {
  return instance({
    method: "post",
    url: "/poorFamily/addPoorFamily",
    data,
  });
};
export const deletePoorFamily = (data) => {
  return instance({
    method: "delete",
    url: `/poorFamily/deletePoorFamily/${data}`,
  });
};
